AR  := ar
LD  := ld
GCC := gcc
#GCC := gcc-7
CCFLAG := -m32 -I../include -nostdinc -ffreestanding -fno-pic -Wall -fomit-frame-pointer -fno-stack-protector -c
OBJS   := string.o
	
lib.a : $(OBJS)
	$(AR) rcs $@ $^
	sync
	
string.o : string.c
	$(GCC) $(CCFLAG) -o $@ $<
	
clean : 
	-rm -f *.o
	-rm -f lib.a
